from django.db import models

# Create your models here.

class FirmUser(models.Model):
    """自定义企业用户模型类"""

    mobile = models.CharField(max_length=11, unique=True, verbose_name='手机号')
    password = models.CharField(max_length=11,default=0,unique=False,verbose_name="密码")
    username = models.CharField(max_length=11,verbose_name='用户名')

    class Meta:
        db_table = 'firmUser'
        verbose_name = '企业用户'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.username